<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.springside.core.Constants,cn.firstsoft.firstframe.util.ContextUtils"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<fmt:message key="login_username" var="login_username"/>
<fmt:message key="login_password" var="login_password"/>
<fmt:message key="login_j_captcha_response" var="login_j_captcha_response"/>
<fmt:message key="login_submit" var="login_submit"/>
<fmt:message key="login_reset" var="login_reset"/>
<fmt:message key="login_info_label5" var="login_info_label5"/>
<fmt:message key="login_info_label6" var="login_info_label6"/>

<html>
<head>
<title></title>
<link href="<c:url value="/themes/mskin/login/new/style.css"/>" rel="stylesheet" type="text/css" />
<style>
.loginTxt{
	color:#024679;
	font-size: 12px;
}
.declare{
	color:#A6DFF6;
	font-size: 12px;
	text-decoration:none;
}
.login_input{border: 1px solid #0065AA;font-size: 12px;background-color: #ffffff;vertical-align: middle;height:22px;}
.button_login {
	border-right: #A1A1A1 0px solid; 
	padding-right:0px; 
	border-top:	#a1a1a1 0px solid; 
	padding-left: 0px; 
	font-size: 14px; 
	border-left: #a1a1a1 0px solid; 
	color:#ffffff; 
	padding-top: 0px; 
	border-bottom: #a1a1a1 0px solid;
	width:95px;
	height:35px;
	font-weight:bold;
    background-image: url(<c:url value="/themes/mskin/login/new/images/login_btn1.jpg"/>);
	 }
.button_reset {
	border-right: #a1a1a1 0px solid; 
	padding-right:0px; 
	border-top:	#a1a1a1 0px solid; 
	padding-left: 0px; 
	font-size: 14px; 
	border-left: #a1a1a1 0px solid; 
	color:#ffffff; 
	padding-top: 0px; 
	border-bottom: #a1a1a1 0px solid;
	width:95px;
	height:35px;
	font-weight:bold;
    background-image: url(<c:url value="/themes/mskin/login/new/images/reset_btn1.jpg"/>);
}

#ie_declare{position:absolute;left:570px;top:370px;width:171px;height:79px;z-index:1;}




#loginCustomBlackdiv {
	z-index: 8;
	filter: alpha(opacity = 1);
	-moz-opacity:0.3;
	-khtml-opacity: 0.3;
	opacity: 0.3;
	left: 0px;
	width: 100%;
	position: absolute;
	top: 0px;
	height: 100%;
	background-color: #fff;
}
</style>
<script type="text/javascript">
function hideView(){
	top.document.getElementById("topDialog").style.display = "none";
	top.document.getElementById("topBlackdiv").style.display = "none";
	top.document.getElementById("topDialogIframe").src = "";
}
function checkOfficeAddIn() {
	if ( !window.ActiveXObject ) return;
	var v = false;
	try {
		var o = new ActiveXObject("OfficeAddInDetector.OAOfficeDetector");
		v = o.IsOfficeAddInAvailable();
	} catch ( exception ) {
	}
	var u = '${url}';
	if ( v != true ) {
		document.getElementById("msgOffice").innerHTML = '<spring:message text="请下载Office办公插件" code="loginjsp_label16" arguments="${url}" />';
	}
}
</script>
</head>
<body style="background-color: #0570B7">
<div style="width:100%;text-align: center;z-index:9;position:absolute;">
<a style="text-decoration:none;" href="#" onclick="hideView()">
	<font style="font-weight:bold;font-size:16px;color:red;">关闭预览</font>
</a>
</div>

<c:choose>
	<c:when test="${param.loginImageType == 'swf' || param.loginImageType == 'SWF'}">
		<div style="position:absolute;z-index:-1">
			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1018" height="634">
				<param name="movie" value="<c:url value="/themes/mskin/login/new/images/${param.loginImageName }"/>" />
				<param name="wmode" value="transparent" />
			</object>
		</div>
		<c:set var="loginImageUrl" value=""></c:set>
	</c:when>
	<c:otherwise>
		<c:set var="loginImageUrl" value="images/${param.loginImageName }"></c:set>
	</c:otherwise>
</c:choose>


<div id="loginCustomBlackdiv"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr>
    <td style="background:url(${loginImageUrl}) no-repeat center center;height:100%;">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
	      <tr>
	        <td width="59%" height="400">&nbsp;</td>
	        <td width="41%" align="center">
				<table width="80%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
		            <td height="150" colspan="2" class="logintxt">&nbsp;</td>
				    </tr>
		            <tr>
		              <td width="25%" height="30" class="logintxt">${login_info_label5}</td>
		              <td height="30" align="left">
			              	<select name="j_locale" style="width:120px">
			                  <option value="zh_CN">简体</option>
		                      <option value="zh_HK" <c:if test="${cookie['clientlanguage'].value == 'zh_HK'}">selected</c:if>>繁體</option>
		                      <%if(ContextUtils.getInterfaceLicense("lang_en")){ %>
		                      <option value="en_US" <c:if test="${cookie['clientlanguage'].value == 'en_US'}">selected</c:if>>English</option>
		                      <%} %>
			                </select>             
		                 </td>
		            </tr>
		            <%if("true".equals(Constants.DYNAMIC) || "true".equals(Constants.RTX) || "true".equals(Constants.UCSTAR)) { %>
		            <tr>
		              <td height="30" class="logintxt">${login_info_label6}</td>
		              <td height="30" align="left">
		              	<select onchange="changeMode(this);"  name="selectLoginType"  style="width:120px">
		                  <option value="static">系统密码</option>
		                  <option value="dynamic" >动态密码</option>
		              </select></td>
		            </tr>
		            <%} %>
		            
		            <tr>
		              <td height="30" class="logintxt">${login_username}</td>
		              <td height="30" align="left"><input type="text" size="18" name="textfield" class="login_input" /></td>
		            </tr>
		            <tr>
		              <td height="30" class="logintxt">${login_password}</td>
		              <td height="30" align="left"><input type="password" size="20" name="textfield2" class="login_input"  /></td>
		            </tr>
		            <%if(Constants.IMAGERAND){%>
		   			<tr>
		   				<td height="30" class="logintxt">${login_j_captcha_response}</td>
		   				<td height="30" align="left">
		   					<input name="j_captcha_response" type="text" class="login_input" size="18" onfocus="efocus(event);" onBlur="eblur(event);" maxlength="4" />
		   					<img align='absmiddle' src="<c:url value="/common/image.jpg" />">
		   				</td>
		   			</tr>
		   			<%}%>
		   			
		            <tr>
		              <td height="55" colspan="2" align="center">
		              	  <input type="submit" name="Submit" value="${login_submit}" class="button_login"/>
		                  <input type="submit" name="Submit2" value="${login_reset}" class="button_reset"/>
		              </td>
		            </tr>
		        </table>		
	        </td>
	      </tr>
	      <tr height="210">
	        <td colspan="2" class="declare" align="center">
	        	<div style="margin-bottom: 15px;" class="declare" id="msgOffice">&nbsp;</div>
	        	<spring:message text='客户端环境要求' code='loginjsp_label3' />
	        </td>
	        </tr>
	    </table>
	</td>
  </tr>
</table>
</body>
</html>
